package org.empire.model;

import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.List;

public class Post {
	
	private String title;
	private String titleComment;
	private String body;
	private Integer stars = 0;
	private GregorianCalendar date = new GregorianCalendar();
	private List<Comment> comments = new ArrayList<Comment>(); 
	private List<String> tags = new ArrayList<String>();
	private List<Category> categories = new ArrayList<Category>();
	//Images of the post
	//Related posts or articles
	
	
	public String getTitle() {
		return title;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getTitleComment() {
		return titleComment;
	}
	
	public void setTitleComment(String titleComment) {
		this.titleComment = titleComment;
	}
	
	public String getBody() {
		return body;
	}
	
	public void setBody(String body) {
		this.body = body;
	}
	public Integer getStars() {
		return stars;
	}
	
	public void setStars(Integer stars) {
		this.stars = stars;
	}
	
	public List<Comment> getComments() {
		return comments;
	}
	
	public void addComment(Comment comment) {
		this.getComments().add(comment);
	}
	
	public void removeComment(Comment comment) {
		this.getComments().remove(comment);
	}
	
	public GregorianCalendar getDate() {
		return date;
	}
	
	public void setDate(GregorianCalendar date) {
		this.date = date;
	}

	public List<String> getTags() {
		return tags;
	}

	public void addTag(String tag) {
		this.getTags().add(tag);
	}
	
	public void removeTag(String tag) {
		this.getTags().remove(tag);
	}

	public List<Category> getCategories() {
		return categories;
	}

	public void addCategory(Category category) {
		this.getCategories().add(category);
	}
	
	public void removeCategory(Category category) {
		this.getCategories().remove(category);
	}
	
	
	

}
